﻿using UnityEngine;
using System.Collections;

public class IceCubeTimer : MonoBehaviour {

	private float Timer = 0;
	public Transform EditVariable;

	// Use this for initialization
	void Start () {

	}
	
	// Update is called once per frame
	void Update () {
		Timer += Time.deltaTime;
		if(Timer > 1)
		{
			Debug.Log("RESET TIMER");
			Timer = 0;
			EditVariable.localScale = new Vector3((float)(transform.localScale.x * 0.98),
			                                      (float)(transform.localScale.y * 0.98), 
			                                      (float)(transform.localScale.z * 0.98));
		}
	}
}
